home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / VD08BIN.ZIP / usr / include / pm / stdwindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-13  |  1.8 KB  |  80 lines

  1. #ifndef _STDWINDOW_H_
  2. #define _STDWINDOW_H_
  3.  
  4. #ifndef _ACTIONWINDOW_H_
  5. #include <pm/ActionWindow.h>
  6. #endif
  7.  
  8. @interface StdWindow : ActionWindow <Archiving>
  9. {
  10.   HWND  frame;
  11.  
  12.   ULONG   createFlags;
  13. }
  14.  
  15. - initWithId: (ULONG) anId;
  16. - initWithId: (ULONG) anId andFlags: (ULONG) flags;
  17. - free;
  18.  
  19. - (ULONG) createFlags;
  20. - setCreateFlags: (ULONG) flags;
  21.  
  22. - (char *) text: (char *) buffer;
  23. - (int) textLength;
  24. - setText: (char *) buffer;
  25. - setSize: (LONG) x : (LONG) y : (LONG) w : (LONG) h;
  26. - setRect: (LONG) w : (LONG) h;
  27.  
  28. - (PFNWP) windowProcedure; // address of window procedure
  29. - (HMQ) messageQueue;      // handle of message queue
  30. - (ULONG) windowStyle;     // window Style flags
  31.  
  32. - setWindowStyle: (ULONG) styleFlags; // set window style flags
  33.  
  34. // methods for access to instance variables
  35. - (ULONG) pmId;
  36. - setPmId: (ULONG) anId;
  37.  
  38. // methods for access to PM messages
  39. - enable;     // enable window
  40. - disable;    // disable window
  41. - activate;   // activate window
  42. - deactivate; // deactivate window
  43.  
  44. // methods for controlling display behaviour of windows
  45. - invalidate; // invalidate whole window rect
  46. - show;
  47. - hide;
  48. - updateFrame;
  49.  
  50. - (LONG) framexoffset; // horizontal offset of lower left corner
  51. - (LONG) frameyoffset; // vertical offset of lower left corner
  52. - (LONG) framewidth;   // width of window
  53. - (LONG) frameheight;  // height of window
  54. - frameSize: (PSWP) aSize;
  55.  
  56. - (HWND) frame;
  57.  
  58. - setTitle: (char *) aTitle;
  59.  
  60. - makeKeyAndOrderFront: sender;
  61.  
  62. - centerOnScreen: sender;
  63.  
  64. /*
  65.  * Methods for protocol "Archiving"
  66.  */
  67.  
  68. - awake;
  69. - read: (TypedStream *) aStream;
  70. - write: (TypedStream *) aStream;
  71.  
  72. - createInPMWindow: (HWND) hwnd;
  73.  
  74. - (MRESULT) handleMessage: (ULONG) msg
  75.             withParams: (MPARAM) mp1 and: (MPARAM) mp2;
  76.  
  77. @end
  78.  
  79. #endif
  80.